How to set the ssh connection timeout (ssh timeout)
This article describes how to set the ssh connection timeout in linux to avoid force exit. For more information, see.
I have introduced a lot about how to modify the ssh connection timeout.
For
For Linux OPS workers, using SSH remote remote server is no longer familiar! Some of the strict settings for SSH also related to server security maintenance, today, I work in the use of SSH experience, do some summary records to the next. (1) After
Common linux Services-SSH and ssh public key authentication 1. ssh (secureshell) is installed by default. the package name is openssh, [root @ localhostlogs] yuminstallopenssh & hellip; & common linux Services-SSH and ssh public key authentication 1.
The full name of SSH is Secure SHell, which can be divided into two parts: server and client. When the SSH client communicates with the server, the user name and password are encrypted, which effectively prevents others from stealing the password.
SSH Public Key login
Typically, when administering a remote host, SSH is logged in, SSH user@host, but the password is used every time. The key pair that is generated by using Ssh-keygen, and then the public key is added to the target host's ~/.ssh/
Article Title: How to Solve ssh timeout disconnection. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
When
There are two parameters in the SSH configuration file to control idle connection timeout and disconnection. The two parameters are clientalivecountmax and clientaliveinterval.
Set idle SSH connection timeout on solaris10 as follows:
Modify the/
PuttyEnable Putty KeepAlivePutty, Connection, Seconds between keepalives (0 to turn off), default is 0, change to 60.Change the configuration file for the SSH server/etc/ssh/sshd_configCLIENTALIVEINTERVAL Specifies the time interval for server-side
This article is part of the Jenkins Application system article, most of which comes from work and learning practices, some of which are from official documents and netizens ' articles, which are quoted in the "References" section with original links,
Method 1,If it is blank, it indicates that it is not set. It is equal to the default value 0. Generally, it should not time out. If it is greater than 0, it can be set to 0 in files such as/etc/profile.Use the command to directly modify the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.